// 属性装饰器
function LoginProperty(attrValue: any) {
  return function PropertyDecorator (targetClassPrototype: any, attrname: any) {
    console.log(targetClassPrototype, attrname)
    targetClassPrototype.constructor.showInfo = function() {
      console.log("消费大酬宾，满1000减50！！！")
    }
  }
}

class Customer {
  @LoginProperty("属性拦截器")
  name?: string = "张三"
  say() {}
}

export {}